package com.hz.apiService.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
public interface TeacherApi {
    @GetMapping("/user/all-teachers")
    public String allTeachers();

    @GetMapping("/user/teacher-info")
    public String getTeacherInfo(@RequestParam("teacherId") Integer teacherId);
}
